//
//  MLXNetworkManager.h
//  MLX
//
//  Created by SY on 2018/11/1.
//  Copyright © 2018年 SY. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MLXHttpMacro.h"
//#import "SJNetworkHeader.h"
@class MBProgressHUD;
@interface MLXNetworkManager : NSObject
//post 请求
+(void)mlx_sendPostRequest:(NSString *)url parameters:(id)parameters hudText:(NSString *)hudText autoHudHide:(BOOL)isAutoHudHide hudView:(UIView *)hudView isQuery:(BOOL)isQuery success:(void(^)(id responseObject))successBlock failure:(void(^)(NSURLSessionTask *task, NSError *error, NSInteger statusCode))failureBlock;
//get 请求
+(void)mlx_sendGetRequest:(NSString *)url parameters:(id)parameters hudText:(NSString *)hudText autoHudHide:(BOOL)isAutoHudHide hudView:(UIView *)hudView isQuery:(BOOL)isQuery success:(void(^)(id responseObject))successBlock failure:(void(^)(NSURLSessionTask *task, NSError *error, NSInteger statusCode))failureBlock;
//取消请求
+(void)mlx_cancelCurrentRequestWithUrl:(NSString *)Url;
//设置头部
+ (void)mlx_addCustomHeader:(NSDictionary *_Nonnull)header;

+(instancetype)shareNetworkManager;

+(void)hideHud;
@end

